package com.example.demo.mapper;

import com.example.demo.entity.Count;
import com.example.demo.entity.CountBean;
import com.example.demo.entity.CountExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CountMapper {
    int countByExample(CountExample example);

    int deleteByExample(CountExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Count record);

    int insertSelective(Count record);

    List<Count> selectByExample(CountExample example);

    Count selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Count record, @Param("example") CountExample example);

    int updateByExample(@Param("record") Count record, @Param("example") CountExample example);

    int updateByPrimaryKeySelective(Count record);

    int updateByPrimaryKey(Count record);

    //查找四大类的总浏览数
    List<CountBean> selectAllCount();

    //根据天数查找四大类总浏览数
    List<CountBean> selectDayCount(Integer day);
}